package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author 小坏
 * @Date 2020/10/9 17:04
 * @Version 1.0
 * @program: 父工程 gulimall 万物起源之地
 * 二级分类
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Catelog2Vo {

    private String catalog1Id;  //1级父分类id
    private List<Catelog3Vo> catalog3List;  //3级父分类id
    private String id;
    private String name;

    /**
     * 三级分类
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Catelog3Vo {
        private String catalog2Id;  //父分类、2级分类id
        private String id;
        private String name;
    }
}
